<?php

use think\facade\Route;

Route::group(function () {
    // 获取用户信息
    Route::get('getUserInfo', 'v1.User/getUserInfo')
        ->setOption('real_name', '获取用户信息');

    // 用户投资
    Route::post('investment', 'v1.User/investment')
        ->setOption('real_name', '用户投资');

    // 赎回矿机
    Route::post('redemption', 'v1.User/redemption')
        ->setOption('real_name', '赎回矿机');

    // 获取参与记录
    Route::get('getOrderList', 'v1.User/getOrderList')
        ->setOption('real_name', '获取参与记录');

    // 绑定邀请人
    Route::post('bindInviter', 'v1.User/bindInviter')
        ->setOption('real_name', '绑定邀请人');

    // 获取用户账户详情
    Route::get('getUserAccountInfo', 'v1.User/getUserAccountInfo')
        ->setOption('real_name', '获取用户账户详情');

    // codex兑换usdt
    Route::post('codexExchangeUSDT', 'v1.User/codexExchangeUSDT')
        ->setOption('real_name', 'codex兑换usdt');

    // 获取用户兑换记录
    Route::get('getUserExchangeRecord', 'v1.User/getUserExchangeRecord')
        ->setOption('real_name', '获取用户兑换记录');

    // 用户提现USDT
    Route::post('userWithdraw', 'v1.User/userWithdraw')
        ->setOption('real_name', '用户提现USDT');

    // 获取用户提现记录
    Route::get('getRecordList', 'v1.User/getRecordList')
        ->setOption('real_name', '获取用户提现记录');

    // 获取推荐列表
    Route::get('getDirectTeamInfo', 'v1.User/getDirectTeamInfo')
        ->setOption('real_name', '获取推荐列表');

    // 获取用户收益记录
    Route::get('getUserMiningProfitLog', 'v1.User/getUserMiningProfitLog')
        ->setOption('real_name', '获取用户收益记录');

    // 设置用户可提现usdt
    Route::post('setUserAllowedInterest', 'v1.User/setUserAllowedInterest')
        ->setOption('real_name', '设置用户可提现usdt');

    // 获取用户资产记录
    Route::get('getUserBalanceLog', 'v1.User/getUserBalanceLog')
        ->setOption('real_name', '获取用户资产记录');
})->middleware(\app\api\middleware\JwtAuth::class);
// 获取配置
Route::get('getConfig', 'v1.User/getConfig')
    ->setOption('real_name', '获取配置');
